package com.dy.gmall2206a.controller;

import com.dy.gmall2206a.server.SugarServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sugar.SugarUtil;

import java.util.Map;

/**
 * @projectName: gmalll2206
 * @package: com.dy.gmall2206a.controller
 * @className: SuagrController
 * @author: DuanYu
 * @description: TODO
 * @date: 2025/3/9 16:41
 * @version: 1.0
 */
@RestController
public class SuagrController {
    @Autowired
    SugarServer sugarService;

    @RequestMapping("/sugarMap")
    public Map showMap() {
        return SugarUtil.getMapData(sugarService.showMap());
    }

}
